<%@page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%-- @ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" --%>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

		<title>JOBS</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="jobs,search">
		<meta http-equiv="description" content="Jobs Home Page">
	<title>Job test Page</title>
	<SCRIPT src="/js/jobs.js" type="text/javascript"></SCRIPT>
<script type="text/javascript">
//Enter-listener
if (document.layers)
document.captureEvents(Event.KEYDOWN);
document.onkeydown =
  function (evt) { 
    var keyCode = evt ? (evt.which ? evt.which : evt.keyCode) : event.keyCode;
    if (keyCode == 13)   //13 = the code for pressing ENTER
    {
       document.forms[0].submit();
    }
  }
function submitPrevSearch(searchStr){
	if(searchStr != "" && searchStr.indexOf("-") != -1)
	{
		var saperator = searchStr.indexOf("-");
		var searchFor = searchStr.substring(0,saperator-1);
		var loc = searchStr.substring(saperator + 1, searchStr.length);
		
	}
	var form = document.forms[0];
	form.searchString.value=searchFor;
	form.location.value=loc;
	form.action.value="find";
	form.submit();
}
</script>
</head>
<body>
<table bordercolor="#EEEEFF" width="780">
<tr>
	<td colspan="1" align="right"><A href="/job/actions/user.do?action=load">Login</A>&nbsp;&nbsp;<A href="#">Preferences</A></td>
</tr> 
<tr>
<td width="70%">
	<html:form  action="actions/mainSearchAction" method="post" onsubmit="return false;">
	<html:hidden property="action" value="find"/>
	<table>
		<tr>
			<td><img border="0" width='250' height="109" src="../images/placementinc.jpg" alt="Placement job search"></td>
		</tr>
		
		<tr>
			<td><hr></td>
		</tr>
		
		<tr>
			<td>
				<table>
					<tr height="100" valign="top">
						<td align="left">
							Search For<br/>
							<html:text property="searchString" size="20"></html:text><br/>
							Enter keywords (e.g., nurse, sales)
						</td>
						<td align="left">
							Location<br/><html:text property="location" size="20" ></html:text><br/>
							Boston, MA or 01803
						</td>
						<td align="left">
							<input type="button" value="Find Job" size="20" onclick="document.forms[0].submit();">
						</td>
						<td align="left">
							<a href="pages/search.jsp">Advanced Search</a>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<%@include file="/pages/incSearchResult.jsp" %>
			</td>  
		</tr>
		<tr>
			<td>
				<hr></td>
		</tr>
		<tr>
			<td>Subscribe to Email:<input type="text" name="em" size="30"/><input type="button" value="Submit"/></td>
		</tr>

	</table>
	</html:form>
</td>
<td width="30%" valign="top">
	<table>
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td align="right">Recent Searches</td>
		</tr>
		
			<logic:iterate id="jobSearch" name="mainSearchForm" property="prevSearch">
			<tr>
				<td>
					<a href="javascript:submitPrevSearch('<bean:write name="jobSearch" />');"><bean:write name="jobSearch" /></a>&nbsp;<br/>
				</td>
			</tr>
			</logic:iterate>				
		
	</table>
</td>
</tr>
<tr>
	<td colspan="2">
		<table width="100%">
			<tr>
				<td width="30%">
					
					<table>
						<tr>
							<td>Skills/Categories</td>
						</tr>
					</table>
				</td>
				<td width="30%">
					
					<table>
						<tr>
							<td>Top Locations</td>
						</tr>
						<tr>
							<td>NY</td>
						</tr>
						<tr>
							<td>CA</td>
						</tr>
						<tr>
							<td>FL</td>
						</tr>
					</table>
				</td>
				<td width="40%">
					
					<table>
						<tr>
							<td>reference Materials/External Links</td>
						</tr>
					</table>
				</td>
			</tr>
		</table></td>
</tr>
	<tr>
		<td colspan="2" align="center">
			<a href="#">About Us</a> <a href="#">Contact Us</a> <a href="#">News</a></td>
	</tr>
</table>
<font>Job Copyright �1990 - 2009 All rights reserved. Use of this site is subject to certain Terms and Conditions.</font>
</body>
</html>